﻿using System.Collections.Generic;

namespace SellAndBuy.Application.Query.DTOs
{
    /// <summary>
    /// Item definition
    /// </summary>
    public class ItemDTO
    {
        private readonly IList<PictureInfoDTO> _pictures = new List<PictureInfoDTO>();

        /// <summary>
        /// ID
        /// </summary>
        public int ID { get; set; }

        /// <summary>
        /// Item name
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// Item description
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// Item category
        /// </summary>
        public ItemCategoryDTO Category { get; set; }

        /// <summary>
        /// Pictures
        /// </summary>
        public virtual IEnumerable<PictureInfoDTO> Pictures
        {
            get
            {
                return _pictures;
            }
        }
    }
}
